package test;

public class 测试静态内部类 {

    public static void main(String[] args) {
        测试静态内部类 obj = new 测试静态内部类();
        Cls cls = new Cls();
        System.out.println(cls.name);
        cls.test();
        obj.test01();
    }

    public void test01(){
        Cls cls = new Cls();
        System.out.println(cls.name);
    }

    static class Cls{
        public String name = "张三";
        public void test(){
            System.out.println("你好");
        }
    }
}
